package com.lxb.eduservice.client;

import com.lxb.commonutils.vo.UcenterMemberVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


/**
 * service_ucenter 服务提供接口
 *
 * @author xuebin.li
 * @createTime 2023/1/11 23:20
 */
@FeignClient(value = "service-ucenter", fallback = UcenterClientImpl.class) //指定从哪个服务中调用功能 ，名称与被调用的服务名保持一致。
public interface UcenterClient {

    /**
     * 根据用户id获取用户信息
     *
     * @param id
     * @return
     */
    @GetMapping("/educenter/getInfoUc/{id}")
    public UcenterMemberVO getInfoUc(@PathVariable String id);
}
